package com.unitedats.common.util;

public class Enums {

	public enum PROJECT_TYPE {
		
		TRAINING(1, "training"), SERVICE(2, "service"), MIX(3, "mix");

		int id;
		String name;

		PROJECT_TYPE(int id, String name) {
			this.id = id;
			this.name = name;

		}

		public int getId() {
			return id;
		}

		public String getName() {
			return name;
		}
		
		public static String getNameById(int id) {
			for (PROJECT_TYPE i : values())
				if (i.getId() == id)
					return i.getName();
			return "no match found";
		}
	}

	public enum PROJECT_STATUS {
		INPROGRESS(1, "in progress"), SUSPENDED(2, "suspended"), REFUSED(3, "refused"),COMPLETED(4, "completed");

		int id;
		String name;

		PROJECT_STATUS(int id, String name) {
			this.id = id;
			this.name = name;

		}

		public int getId() {
			return id;
		}

		public String getName() {
			return name;
		}
		
		public static String getNameById(int id) {
			for (PROJECT_STATUS i : values())
				if (i.getId() == id)
					return i.getName();
			return "no match found";
		}
	}

}
